from tkinter import*
def plus():
    n1 = int(e1.get())
    n2 = int(e2.get())
    s=n1+n2
    t1.config(text=str(s))
f_top=Tk()
f_top.geometry('300x100')
t1 = Label(f_top, text="Введите два числа")
t1.pack()
e2 = Entry(f_top, width=20)
e2.pack()
e1 = Entry(f_top, width=20)
e1.pack()
b1 = Button(text="Сложить", command=plus)
b1.pack()
f_top.mainloop()
